package com.zp.self.springboot.三种配置获取;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author By ZengPeng
 * @Description
 * @date in  2021/4/1 23:52
 * @Modified By
 */
@Component
@ConfigurationProperties(prefix = "person")
@Data
public class ConfigurationPropertiesTest {
    String  name;
    int  age;
    String  sex;
}
